extends CanvasLayer

# STORE THE SCENE PATH
var current_scene = 0


func _ready():
    # Called every time the node is added to the scene.
    # Initialization here
    # get_tree().change_scene("1_Transition_A.tscn")
    get_node("AnimationPlayer").play("FadeIn") # play the transition animation
    pass

func change_scene():
    if current_scene != 2:
        current_scene = 2
        get_node("CanvasLayer/sceneA").visible = true
        get_node("CanvasLayer/sceneB").visible = false
    elif current_scene == 2:
        current_scene = 1
        get_node("CanvasLayer/sceneB").visible = true
        get_node("CanvasLayer/sceneA").visible = false